$headerH: 55px;
.header {
  background-color: rgba(255,255,255,.95);
  height: $headerH;
  line-height: $headerH;
  border-bottom: 1px solid #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  @include zIndexShadow(1);
  .container {
    position: relative;
  }
  .logo {
    display: inline-block;
    vertical-align: top;
    height: 45px;
    img {
      height: 100%;
    }
  }
  .nav {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
  }
  .nav .item {
    color: #777;
    font-size: 1rem;
    padding: 19px 20px;
    background-color: rgba(255,255,255,0);
    transition: all .2s;
    text-decoration: none;
    font-weight: bold;
    &:hover,&.active {
      color: #fff;
      background-color: $color-brown;
      @include zIndexShadow(1);
    }
    &.geekchoice {
      background: image-url('innoawards/geekchoice.png') center center no-repeat;
      background-size: 100% 80%;
      color: #e0293e;
      &:hover {
        background: #e0293e;
        color: #fff;
      }
    }
  }
  .account-feature {
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    right: 0;
    top: 0;
    // 如果是用 float: right 偶尔会出现错位
  }
  .login-feature .theme-btn {
    font-size: .8rem;
    &:hover {
      @include zIndexShadow(1);
    }
    &:first-child {
      border-radius: 3px 0 0 3px;
      position: relative;
      border-right: none;
      &::after {
        content: '';
        position: absolute;
        width: 1px;
        height: 18px;
        background-color: #fff;
        right: -1px;
        opacity: .6;
      }
    }
    &:last-child {
      border-radius: 0 3px 3px 0;
    }
  }
  .user-info {


  }
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #bbb;
    img {
      display: block;
      width: 100%;
    }
  }
  .username {
    font-size: 1rem;
    margin-left: 5px;
  }
  .logout {
    background-color: #efefef;
    border-color: #ccc;
    color: #999;
    font-size: .8rem;
    padding: 5px 12px;
    margin-left: 5px;
    span {
      margin-right: 5px;
    }
  }
} //.header end

@media (max-width: $screen-lg-min) {
  .header {
    .nav {
      margin-left: 10px;
      .item {
        font-size: .9rem;
        padding-left: 12px;
        padding-right: 12px;
      }
    }
  }
}

@media (max-width: $screen-sm-max) {
  .header {
    text-align: center;
  }
  .header .logo {
    height: 35px;
  }
  .header .nav {
    display: none;
  }
  .header .account-feature {
    right: 15px;
    .btn.theme-btn {
      padding: 5px 10px;
    }
  }
}

@media (max-width: $screen-xs-max) {
  .header .logo {
    height: 30px;
  }
}
